<h1>Leave History for <?php echo $employee->name; ?></h1>

<?php
$model = $dataProvider->model;
$start = '$data->unixStart, "medium", null';
$startValue = "Yii::app()->dateFormatter->formatDateTime($start)";
$finish = '$data->unixFinish, "medium", null';
$finishValue = "Yii::app()->dateFormatter->formatDateTime($finish)";
$config = array(
	'id'=>'leave-grid',
	'dataProvider'=>$dataProvider,
	'enableSorting'=>false,
	'columns'=>array(
		'name',
		array(
			'header'=>$model->getAttributeLabel('start'),
			'type'=>'raw',
			'value'=>$startValue,
		),
		'debit',
		'balance',
		'status',
	),
);
$this->widget('zii.widgets.grid.CGridView', $config);
?>
